package demo5;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2023-11-15
 * Time: 18:19
 */
class Add{
    private int a;
    private int b;
    public Add(int a, int b){
        this.a = a;
        this.b = b;
        System.out.println(a+b);
    }
}
class Addb extends Add{

    public Addb(int a,int b,int c){

      super(a,b);
        System.out.println(a+b+c);
    }
}
public class Test1 {
    public static void main(String[] args) {
        Add add = new Addb(1,4,2);
    }



}
